package com.hitqz.robot.api.business.enums;

import java.util.HashMap;

/**
 * @author xupkun
 * @date 2024/7/24
 */
public enum WorkStatusEnum {

    FREE("0", "空闲"),

    PATROL("1", "巡逻中"),

    CHARGE("2", "充电中"),

    WORK("3", "作业中"),

    WAY_2_CHARGE("4", "前往充电中"),

    WORK_TRANSPORT("5", "运输中"),



    ;

    public final static HashMap<String, WorkStatusEnum> CMD_ROBOT_STATUS = new HashMap<>();


    static {
        for (WorkStatusEnum value : values()) {
            WorkStatusEnum.CMD_ROBOT_STATUS.put(value.getCode(), value);
        }
    }


    private String code;

    private String desc;

    WorkStatusEnum(String  code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
